﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmVentaGestionRegistro.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmVentaGestionRegistro" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxUploadControl" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">

    <script type="text/javascript">
    // <![CDATA[

        function ShowMensaje() {
            PopupMsj.Show();


        }
    // ]]> 
    </script>

    <script type="text/javascript">


        function pageLoad() {

            var control = document.getElementById('ctl00_cphMain_hfIndicador');
            cambiarImagenHeader();

            if (control.value == 'S') {
                $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();

                control.value = 'N';
            }


        }

                

                
               

</script>
<div class="main-header" style="width:100%">
                <div class="main-titulo" style="width:87%;">
                Mantenimiento de Tablas
                    </div>
               
               
            </div>

          
            <asp:HiddenField ID="hfIndicador" runat="server" Value="S" />
            <table>
            <tr>
            <td>
            
            
           
           
                <dx:ASPxButton ID="btnFormato" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Text="Descargar formato" onclick="btnFormato_Click">
                </dx:ASPxButton>
            
            
           
           
            </td>
            <td>
            
            
            
            
                <dx:ASPxButton ID="btnImportar" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Text="Importar archivo" onclick="btnImportar_Click">
                </dx:ASPxButton>
            
            
            
            
            </td>
        
        <td>
              <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>

              <dx:ASPxButton ID="btnGrabar" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Grabar" 
                    Width="100px" onclick="btnGrabar_Click">
                </dx:ASPxButton>
            
         </ContentTemplate>
            </asp:UpdatePanel>
            
          </td>  
            <td>
                <dx:ASPxButton ID="bntSalir" runat="server" Text="Salir" Width="100px" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" onclick="bntSalir_Click" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                </dx:ASPxButton>
            
            </td>
            
            
            
            
            </tr>



            </table>


             <div class="content-form">
           
             <table>
             <tr>
             <td>
             
             
                 <dx:ASPxUploadControl ID="uploadImportarExcel" runat="server" 
                     CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                     CssPostfix="Office2010Blue" 
                     onfileuploadcomplete="uploadImportarExcel_FileUploadComplete" 
                     SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="365px">
<ValidationSettings MultiSelectionErrorText="Attention! 

The following {0} files are invalid because they exceed the allowed file size ({1}) or their extensions are not allowed. These files have been removed from selection, so they will not be uploaded. 

{2}" AllowedFileExtensions=".XLS, .XLSX" 
                         NotAllowedFileExtensionErrorText="No es formato correcto de archivo."></ValidationSettings>
                 </dx:ASPxUploadControl>
             
             <asp:UpdateProgress runat="server" id="UpdateProgress1">
                         <ProgressTemplate>
                         <div id="blur1"></div>                         
                            <div class="verventa-overlay">
                               <div class="recventa-overlay">
                                  <table>
                                      <tr>
                                          <td><img src="../Images/loading1.gif" alt="Cargando..."/> </td>
                                          <td><strong>Procesando ....</strong></td>
                                      </tr>
                                  </table>   
                               </div>
                           </div>
                         </ProgressTemplate>
                   </asp:UpdateProgress>
             &nbsp;&nbsp;
             </td>
             
             
             </tr>
             
             </table>
                  
            
        
            
            
                <asp:UpdatePanel runat="server">
                
                <ContentTemplate>
                <dx:ASPxGridView ID="grdListGestion" runat="server" AutoGenerateColumns="False" 
                     CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                     CssPostfix="Office2010Blue" Width="100%" KeyFieldName="NRO_FACTURA" 
                     onpageindexchanged="grdListGestion_PageIndexChanged">
                     <Columns>
                         <dx:GridViewDataTextColumn FieldName="NRO_FACTURA" VisibleIndex="0" 
                             Caption="Nro. factura" ToolTip="Número de factura">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn FieldName="FEC_ENTREGA_CMP" VisibleIndex="1" 
                             Caption="Fec. entrega CM de pago" 
                             ToolTip="Fecha entrega carta media de pago">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn FieldName="FEC_ENTREGA_TITULO" VisibleIndex="2" 
                             Caption="Fec. entrega CM de título" 
                             ToolTip="Fecha entrega de carta media título">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn FieldName="FEC_ENTREGA_POLIZA" VisibleIndex="3" 
                             Caption="Fec. entrega poliza" ToolTip="Fecha entrega poliza">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn FieldName="NIF_REPRESENTANTE" VisibleIndex="4" 
                             Caption="Nif. representante" 
                             ToolTip="Número de identificación de representante">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn FieldName="NOM_REPRESENTANTE" VisibleIndex="5" 
                             Caption="Nom. representante" ToolTip="Nombre de representante">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn FieldName="NRO_PARTIDA" VisibleIndex="6" 
                             Caption="Nro. partida" ToolTip="Número de partida">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn FieldName="NRO_ASIENTO" VisibleIndex="7" 
                             Caption="Nro. asiento" ToolTip="Número de asiento">
                         </dx:GridViewDataTextColumn>
                     </Columns>
                     <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                         <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                         </LoadingPanelOnStatusBar>
                         <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                         </LoadingPanel>
                     </Images>
                     <ImagesFilterControl>
                         <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                         </LoadingPanel>
                     </ImagesFilterControl>
                     <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                         CssPostfix="Office2010Blue">
                         <Header ImageSpacing="5px" SortingImageSpacing="5px">
                         </Header>
                         <LoadingPanel ImageSpacing="5px">
                         </LoadingPanel>
                     </Styles>
                     <StylesPager>
                         <PageNumber ForeColor="#3E4846">
                         </PageNumber>
                         <Summary ForeColor="#1E395B">
                         </Summary>
                     </StylesPager>
                     <StylesEditors ButtonEditCellSpacing="0">
                         <ProgressBar Height="21px">
                         </ProgressBar>
                     </StylesEditors>
                 </dx:ASPxGridView>

                 <dx:ASPxPopupControl ID="PopupMsj" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupMsj" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
        Width="300px">
                
                    

                    <loadingpanelimage url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    

                    </loadingpanelimage>
                    

                    <closebuttonstyle>
                    

                    <paddings padding="0px" />
                    

                    </closebuttonstyle>
                    

                    <contentstyle>
                    

                    <borderbottom bordercolor="#E0E0E0" borderstyle="Solid" borderwidth="1px" />
                    

                    </contentstyle>
                    

                    <HeaderStyle>

                    <paddings paddingbottom="4px" paddingleft="10px" paddingright="4px" 
                        paddingtop="4px" />
                    

                    </HeaderStyle>
                    

                    <contentcollection>
                    
                    <dx:PopupControlContentControl ID="PopupControlContentControl8" runat="server" 
                        SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                    <panelcollection>
                        <dx:PanelContent ID="PanelContent1" runat="server">
                        <table align="center">
                        <tr>
                        <td>
                        
                            &nbsp;<dx:ASPxLabel ID="lblmensaje" runat="server" Font-Size="8pt">
                            </dx:ASPxLabel>
                            </td>
                        
                        </tr>
                            <tr>
                                <td>
                                   </td>
                            </tr>
                              </table>
                              <table>
                        <tr>
                      <td>
                      
                      
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
                        
                        <td>
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
                        
                            <dx:ASPxButton ID="btnAceptar" runat="server" AutoPostBack="False" 
                                ClientInstanceName="btnEliminar" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	PopupMsj.Hide();
}" />
                            </dx:ASPxButton>
                        
                           </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </panelcollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
                    
                    </contentcollection>
                    

                </dx:ASPxPopupControl>
                </ContentTemplate>
                </asp:UpdatePanel>
             
                 
             
        










             
             
             </div>
             
</asp:Content>
